home *** CD-ROM | disk | FTP | other *** search
/ Family Forum 256 / SOMC Family Forum 256 - Disc 2.iso / AOL_V2.7IN / Online Files / AOLGLOBALnet < prev    next >
Text File  |  1996-04-12  |  19KB  |  620 lines

  1. !***************************************************************************
  2. !   C O P Y R I G H T   A N D   C O N F I D E N T I A L I T Y   N O T I C E
  3. !***************************************************************************
  4. !
  5. !      Copyright ⌐ 1987-1996 America Online, Inc.  All rights reserved.
  6. !      This software contains valuable confidential and proprietary
  7. !      information of America Online, Inc. and is subject to applicable
  8. !      licensing agreements.  Unauthorized reproduction, transmission or
  9. !      distribution of this file and its contents is a violation of
  10. !      applicable laws.
  11. !
  12. !            A M E R I C A   O N L I N E   C O N F I D E N T I A L
  13. !
  14. !***************************************************************************
  15. ! -------------------------------------------------
  16. !   AOLGLOBALnet CCL
  17. !   Created from the Sprintnet CCL - DJMiller, 1/10/96
  18. !   for AO v2.6 and above
  19. ! -------------------------------------------------
  20. !   Sprintnet CCL for AO v2.1 and above
  21. !   By: Matt Day
  22. !
  23. !   Version 2.1
  24. ! Created from old Sprintnet CCL
  25. ! Changed 2/4/93 to turn on hardware handshaking.
  26. ! Changed 2/12/93 Matchstr to new format.
  27. ! Changing login string ╥windows 0001╙ to ╥mac aol 0001╙.  -- RG, 93/09/26
  28. !  Adding pauses before and after "+++" command. - RG, 1/21/94
  29. !  Adding new and improved connection messages. - RG, 2/23/94
  30. !  Added network query for connect speed. -JH, 11/22/94
  31. !  Adding support for modems that report 31.2 and 33.6 connections. - RG, 3/08/96
  32. !-------------------------------------------------
  33. !
  34. ! Connect Sequence:
  35. !
  36. -LABEL 0
  37. CanBtn 19               { if cancel button - just exit }
  38. Jsr "CheckPhoneLength"
  39. NewString sNetworkSync
  40. NewLngInt bHighSpeed
  41. SetVar bHighSpeed 0
  42. NewLngInt bSerSpeed
  43. SetVar bSerSpeed ~BAUD
  44. CheckPort "19" ~PORT
  45. DsplyMsg "Step 1:  Initializing modem"
  46. SetTries 0
  47. ChrDelay 2
  48. SerReset ~BAUD 0 8 1
  49. IfEq Handshake 0
  50.  Jump "TurnHandshakeOff"
  51.  
  52. -Label TurnHandshakeOn 
  53. IfEq HH_ON ""
  54.  Jump "TurnHandshakeOff"
  55. HSReset 0 1 17 19
  56. Jump "WakeUpModem"
  57.  
  58. -Label TurnHandshakeOff 
  59. HSReset 0 0 17 19
  60. -Label WakeUpModem
  61. DsplyPic 1
  62. !
  63. !----------------------------------
  64. !
  65. -LABEL 1                { wake up the modem }
  66. Flush
  67. !-----------------------------------                        
  68. ZMIT "2" "$INIT$\0D"         { Send modem string; jump to 4 if empty}
  69. Pause 40            { Allow modem to settle between commands.}
  70. !
  71. -LABEL 2
  72. !
  73. ! *No longer allow +++ echoed as proof of initialization.*
  74. IfTries 0 "3"             { Only do this if we need to }
  75. ClrMchStr
  76. MatchStr "3" "OK"         
  77. MatchStr "3" ">"          { Special case for Avatex 1200 modems}
  78. MatchStr "3" "0\0D"      { Verbose is grandiose but terse ain't worse }
  79. !
  80. Pause 180               { Pause for 3 sec min gap }
  81. Xmit "+++"              { Get the modems attention}
  82. Pause 180               { Pause for 3 sec min gap }
  83. Xmit "$ATTENTION$H\0D"            {Hang up, just in case we were online}
  84. Wait 120                { Pause for 2 seconds, minimum gap required}
  85. !
  86. -LABEL 3 
  87. !-----------------------------------
  88. -LABEL 4                { just saw 'OK'- Set up modem }
  89. Flush
  90. !
  91. ClrMchStr
  92. MatchStr "5" "OK"         { We'd better be getting responses by now. }
  93. MatchStr "38" "ERROR"     { If not, something is wrong - we're gone. }
  94. MatchStr "5" ">"          {Special case for Avatex 1200}
  95. !
  96. Pause 40            { Allow modem to settle between commands.}
  97. IfEq Handshake 0
  98.   ZMIT "5" "$ATTENTION$$HH_OFF$$CONFIG$\0D"  { Send modem string; jump if empty}
  99. Else
  100.   ZMIT "5" "$ATTENTION$$HH_ON$$CONFIG$\0D"  { Send modem string; jump if empty}
  101. Wait 120                { Two seconds to get it right. }
  102. IncTries
  103. IfTries 1 "1"             { Try 1: Reset modem.  Try 2: Hang up/reset }
  104. Jump "33"
  105. !-----------------------------------
  106. -LABEL 5                { Now try to dial }
  107. DsplyMsg "Step 2:  Dialing ~PREF~NOCW~FONE"
  108. !
  109. ClrMchStr
  110. MatchStr "Got57600" "CONNECT 57600"
  111. MatchStr "Got57600" "CONNECT 57.6"
  112. MatchStr "Got38400" "CONNECT 38400"
  113. MatchStr "Got38400" "CONNECT 38.4"
  114. MatchStr "Got33600" "CONNECT 33600"
  115. MatchStr "Got33600" "CONNECT 33.6"
  116. MatchStr "Got31200" "CONNECT 31200"
  117. MatchStr "Got31200" "CONNECT 31.2"
  118. MatchStr "Got28800" "CONNECT 28800"
  119. MatchStr "Got28800" "CONNECT 28.8"
  120. MatchStr "Got26400" "CONNECT 26400"
  121. MatchStr "Got26400" "CONNECT 26.4"
  122. MatchStr "Got24000" "CONNECT 24000"
  123. MatchStr "Got24000" "CONNECT 24.0"
  124. MatchStr "Got21600" "CONNECT 21600"
  125. MatchStr "Got21600" "CONNECT 21.6"
  126. MatchStr "Got19200" "CONNECT 19200"
  127. MatchStr "Got19200" "CONNECT 19.2"
  128. MatchStr "Got16800" "CONNECT 16800"
  129. MatchStr "Got16800" "CONNECT 16.8"
  130. MatchStr "Got14400" "CONNECT 14400"
  131. MatchStr "Got14400" "CONNECT 14.4"
  132. MatchStr "Got12000" "CONNECT 12000"
  133. MatchStr "Got12000" "CONNECT 12.0"
  134. MatchStr "Got9600" "CONNECT 9600"
  135. MatchStr "Got7200" "CONNECT 7200"
  136. MatchStr "Got4800" "CONNECT 4800"    
  137. MatchStr "Got2400" "CONNECT 2400\0D"    
  138. MatchStr "Got2400" "CONNECT 2400 "    
  139. MatchStr "Got2400" "CONNECT 2400/"    
  140. MatchStr "Got1200" "CONNECT 1200\0D"
  141. MatchStr "Got1200" "CONNECT 1200 "
  142. MatchStr "Got1200" "CONNECT 1200/"
  143. MatchStr "Got300" "CONNECT 300"
  144. MatchStr "Got300" "CONNECT\0D"     {assume "CONNECT" means the current baud rate}
  145. MatchStr "GotCarrier" "CARRIER"
  146. MatchStr "40" "NO DIAL"          
  147. MatchStr "27" "NO ANSWER"
  148. MatchStr "41" "VOICE"           
  149. MatchStr "42" "NO CARRIER"     
  150. MatchStr "26" "BUSY"
  151. MatchStr "38" "ERROR"
  152. !
  153. !SetTries 0              {DMC E: leave the tries count alone}
  154. CanBtn 18               { if cancel button hit, hangUp then exit }
  155. Pause 30
  156. Xmit "$ATTENTION$D~TONE~PREF~NOCW~FONE\0D"
  157. !                       { jump to label #13 if match }
  158. Wait 3600               { wait 40 seconds for CONNECT msg from modem }
  159. IFTRIES 1 "1"             {If we can't connect, try resetting the modem}
  160. !
  161. !
  162. ! This CCL section formerly checked for "300" through "9600" for
  163. ! no apparent reason - we do not support MNP connections and we'd
  164. ! never see that response string at this point anyway.
  165. !
  166. Jump "43"                 { else hang up phone & exit  }
  167. !
  168. !-----------------------------------
  169. !
  170. -Label Got300
  171. DsplyMsg "Step 3:  Connecting at 300 bps"
  172. SetSpeed 300
  173. IfEq Handshake 0
  174.   SetVar bSerSpeed 300
  175. Jump "Connect"
  176. !
  177. -Label Got1200
  178. DsplyMsg "Step 3:  Connecting at 1200 bps"
  179. SetSpeed 1200
  180. IfEq Handshake 0
  181.   SetVar bSerSpeed 1200
  182. Jump "Connect"
  183. !
  184. -Label Got2400
  185. DsplyMsg "Step 3:  Connecting at 2400 bps"
  186. SetSpeed 2400
  187. IfEq Handshake 0
  188.   SetVar bSerSpeed 2400
  189. Jump "Connect"
  190. !
  191. -Label Got4800
  192. DsplyMsg "Step 3:  Connecting at 4800 bps"
  193. SetSpeed 4800
  194. IfEq Handshake 0
  195.   SetVar bSerSpeed 4800
  196. Jump "Connect"
  197. !
  198. -Label Got7200
  199. DsplyMsg "Step 3:  Connecting at 7200 bps"
  200. SetSpeed 7200
  201. IfEq Handshake 0
  202.   SetVar bSerSpeed 7200
  203. Jump "Connect"
  204. !
  205. -Label Got9600
  206. DsplyMsg "Step 3:  Connecting at 9600 bps"
  207. SetSpeed 9600
  208. IfEq Handshake 0
  209.   SetVar bSerSpeed 9600
  210. Jump "Connect"
  211. !
  212. -Label Got12000
  213. DsplyMsg "Step 3:  Connecting at 12000 bps"
  214. SetSpeed 12000
  215. IfEq Handshake 0
  216.   Jump "46"
  217. Jump "Connect"
  218. !
  219. -Label Got14400
  220. DsplyMsg "Step 3:  Connecting at 14400 bps"
  221. SetSpeed 14400
  222. IfEq Handshake 0
  223.   Jump "46"
  224. Jump "Connect"
  225. !
  226. -Label Got16800
  227. DsplyMsg "Step 3:  Connecting at 16800 bps"
  228. SetSpeed 16800
  229. IfEq Handshake 0
  230.   Jump "46"
  231. Jump "Connect"
  232. !
  233. -Label Got19200
  234. DsplyMsg "Step 3:  Connecting at 19200 bps"
  235. SetSpeed 19200
  236. IfEq Handshake 0
  237.   Jump "46"
  238. Jump "Connect"
  239. !
  240. -Label Got21600
  241. DsplyMsg "Step 3:  Connecting at 21600 bps"
  242. SetSpeed 21600
  243. IfEq Handshake 0
  244.   Jump "46"
  245. Jump "Connect"
  246. !
  247. -Label Got24000
  248. DsplyMsg "Step 3:  Connecting at 24000 bps"
  249. SetSpeed 24000
  250. IfEq Handshake 0
  251.   Jump "46"
  252. Jump "Connect"
  253. !
  254. -Label Got26400
  255. DsplyMsg "Step 3:  Connecting at 26400 bps"
  256. SetSpeed 26400
  257. IfEq Handshake 0
  258.   Jump "46"
  259. Jump "Connect"
  260. !
  261. -Label Got28800
  262. DsplyMsg "Step 3:  Connecting at 28800 bps"
  263. SetSpeed 28800
  264. IfEq Handshake 0
  265.   Jump "46"
  266. Jump "Connect"
  267. !
  268. -Label Got31200
  269. DsplyMsg "Step 3:  Connecting at 31200 bps"
  270. SetSpeed 31200
  271. IfEq Handshake 0
  272.   Jump "46"
  273. Jump "Connect"
  274. !
  275. -Label Got33600
  276. DsplyMsg "Step 3:  Connecting at 33600 bps"
  277. SetSpeed 33600
  278. IfEq Handshake 0
  279.   Jump "46"
  280. Jump "Connect"
  281. !
  282. -Label Got38400
  283. DsplyMsg "Step 3:  Connecting at 38400 bps"
  284. SetSpeed 38400
  285. IfEq Handshake 0
  286.   Jump "46"
  287. Jump "Connect"
  288. !
  289. -Label Got57600
  290. DsplyMsg "Step 3:  Connecting at 57600 bps"
  291. SetSpeed 57600
  292. IfEq Handshake 0
  293.   Jump "46"
  294. Jump "Connect"
  295. !
  296. -Label GotCarrier
  297. DsplyMsg "Step 3:  Connecting at ~BAUD bps"
  298. IfEq Handshake 0
  299.   Jump "46"
  300. Jump "Connect"
  301. !
  302. -Label Connect
  303. SetVar sNetworkSync "...\0D"
  304. SetVar bHighSpeed 0
  305. IfEq Handshake 0
  306.   Jump "DoReset"
  307. Jump "12"
  308. !
  309. -Label DoReset
  310. Pause 180               { Pause for 3 sec min gap }
  311. Xmit "+++"               { Get the modems attention}
  312. Pause 180               { Pause for 3 sec min gap }
  313. SerReset bSerSpeed 0 8 1
  314. Wait 60
  315. MatchStr "12" "CONNECT"
  316. Xmit "$ATTENTION$O\0D"            {Go back to online state}
  317. Wait 60                  { Pause for 1 second, minimum gap required}
  318. !
  319. Jump "12"
  320. !-----------------------------------
  321. !
  322. -LABEL 12               { Modem just sent 'CONNECT' message }
  323. Pause 20
  324. Flush
  325. ChrDelay 20      
  326. DsplyPic 2
  327. !        
  328. -LABEL 13               { Establishing Connection }
  329. Pause 480               { Wait for PAD to detect error correction request }
  330. ChrDelay 20
  331. SetTries 0
  332. !
  333. -Label SendAwake
  334. ClrMchStr
  335. MatchStr "14" "SITA NETWORK:"
  336. MatchStr "44" "NO CARRIER"
  337. MatchStr "28" "\0D\0A ?"         {Command error}
  338. MatchStr "32" "LOCAL"              {Net Busy}
  339. MatchStr "45" "\0D\0A@"          {SprintNet network}
  340. MatchStr "45" "TERMINAL="       {SprintNet network}
  341. MatchStr "45" "TERMINAL ="
  342. MatchStr "45" "ANSNET"
  343. MatchStr "45" "UU.NET"
  344. MatchStr "45" "SPRINT-IP"
  345. MatchStr "45" "SATURN.BBN"
  346. MatchStr "30" "ERROR"              {Error generated from PAD}
  347. Pause 20
  348. DsplyMsg "Step 4:  Requesting network attention"
  349. Xmit sNetworkSync            {Used by Pad to check Speed/Parity}
  350. !
  351. Wait 480                            {Try to sync up to four times}
  352. IncTries
  353. IfTries 4 "28"
  354. Jump "SendAwake"
  355. !
  356. !-------------------------------
  357. !
  358. -LABEL 14
  359. ChrDelay 2
  360. Xmit "SET 1:0,2:0,21:0\0D"       { Setup the local X.3 environment }
  361. Pause 120
  362. SetTries 0
  363.  
  364. -Label SendNUI
  365. ClrMchStr
  366. MatchStr "44" "NO CARRIER"
  367. MatchStr "15" "XXXXXX"
  368. MatchStr "28" "\0D\0A ?"         {Command error}
  369. MatchStr "30" "ERROR"              {Network generated error, probably parity}
  370. Pause 20
  371. DsplyMsg "Step 5:  Talking to network"
  372. Xmit "NUI 22500001\0D"
  373. !
  374. IncTries
  375. IfTries 5 "28"
  376. Wait 480
  377. Jump "SendNUI"
  378. !
  379. -LABEL 15
  380. ChrDelay 2
  381. !
  382. -Label SendPass
  383. ClrMchStr
  384. MatchStr "44" "NO CARRIER"  
  385. MatchStr "29" "IDENTIFIER ERROR"   {Authorize failed}
  386. MatchStr "16" "ACTIVE"                   {Authorize passed}
  387. MatchStr "28" "\0D\0A ?"                {Command error}
  388. MatchStr "30" "ERROR"                     {Network generated error, probably parity}
  389. Pause 20
  390. DsplyMsg "Step 6:  Requesting network authorization"
  391. Xmit "OPXY9F\0D"
  392. !
  393. Wait 480
  394. Jump "SendNUI"
  395. !
  396. !-----------------------------------
  397. !
  398. -LABEL 16
  399. !
  400. !                         Sending America Online node number.
  401. !
  402. ClrMchStr
  403. MatchStr "44" "NO CARRIER"
  404. MatchStr "28" "INVALID"     
  405. MatchStr "17" "CONNECTED"
  406. MatchStr "32" "DISCONNECT"    {Invalid node}
  407. MatchStr "28" "\0D\0A ?"        {Command error}
  408. MatchStr "32" "NOT RE"            {AO down}
  409. MatchStr "32" "AVAIL"             {AO down}
  410. MatchStr "32" "REJECT"           {AO down}
  411. MatchStr "26" "LOCAL"             {Net busy}
  412. MatchStr "32" "BUSY"               {AO busy}
  413. MatchStr "28" "ERROR"             {Net error}
  414. MatchStr "28" "CONGEST"         {Congested }
  415. MatchStr "32" "NOT OPERATING"
  416. MatchStr "28" "PROBLEM"         {Net error}
  417. MatchStr "28" "NOT AL"            {Net error}
  418. MatchStr "28" "NOT IN S"          {Net error}
  419. !
  420. Pause 20
  421. DsplyMsg "Step 7:  Connecting to America Online"
  422. Xmit "LINE(256)9001131,mac aol 0001\0D"
  423. Wait 2700
  424. Jump "37"
  425. !
  426. !-----------------------------------
  427. !
  428. -LABEL 17               { System Ready ... All is well }
  429. DsplyMsg "Step 8:  Checking Password╔"
  430. Pause 60                 { Wait for the X.29 setup to complete before sending the INIT packet }
  431. Exit 0
  432. !
  433. !-----------------------------------
  434. !
  435. -LABEL 18               { User aborted sequence }
  436. Exit -51
  437. !
  438. -LABEL 19               { User aborted sequence...dont need to hang up though}
  439. Exit -111
  440. !
  441. !-----------------------------------
  442. !
  443. -LABEL 26              {Busy phone}
  444. IfEq ~ATMP 0
  445. DsplyMsg "The number dialed is busy. Trying second number."
  446. TAlert "The number dialed is busy.  Please try again later.\0D\0DTo find another local access number, contact Technical Support in the U.S. at 703-264-1184."
  447. IfEq ~ATMP 1
  448. OneAlert 1 "\0D\0DFor more information, select Help from the Apple menu."
  449. Exit -1
  450. !
  451. !-----------------------------------
  452. !
  453. !
  454. !
  455. -LABEL 27              {No Answer}
  456. IfEq ~ATMP 0
  457. DsplyMsg "The number dialed is not answering. Trying second number."
  458. TAlert "The number dialed is not answering.  Please try again later.\0D\0DTo find another local access number, contact Technical Support in the U.S. at 703-264-1184."
  459. IfEq ~ATMP 1
  460. OneAlert 1 "\0D\0DFor more information, select Help from the Apple menu."
  461. Exit -1
  462. !
  463. !---------------------------------------------
  464. !
  465. -LABEL 28
  466. TAlert "The access company failed to respond.  Please try again later.\0D\0DTo find another local access number, contact Technical Support in the U.S. at 703-264-1184."
  467. Jump "36"
  468. !
  469. -LABEL 29              {NUI failure}
  470. TAlert "The authorization step to AOLGLOBALnet did not complete. Please try again later."
  471. Jump "36"
  472. !-----------------------------------
  473. !
  474. -LABEL 30              {Parity error on PAD}
  475. TAlert "The access company reported an error at the local number. Please try again.\0D\0DTo find another local access number, contact Technical Support in the U.S. at 703-264-1184."
  476. Jump "36"
  477. !
  478. -LABEL 32              {not_avail}
  479. TAlert "The final connection step to ~APPL did not complete.  Please try again later."
  480. Jump "36"
  481. !
  482. !-----------------------------------
  483. !
  484. -LABEL 33              {no response from modem}
  485. TAlert "~APPL was unable to initialize your modem.\0D\0D1. Turn your modem off, then back on.\0D2. Check your modem cable connections.\0D"
  486. IfEq ~ATMP 1
  487. OneAlert 1 "3  Click on Setup, and verify your modem type selection.\0D\0DFor more information, select Help from the Apple menu."
  488. Exit -1
  489. !
  490. !-----------------------------------
  491. -LABEL 35
  492. Exit -1
  493. !
  494. -LABEL 36
  495. IfEq ~ATMP 1
  496. OneAlert 1 "\0D\0DFor more information, select Help from the Apple menu."
  497. Exit -1
  498. !-----------------------------------
  499. ! Some new error messages since error #1 is getting kind of meaningless.
  500. !
  501. -LABEL 37          { Time-Out }
  502. TAlert "It has taken too long to process your connection.\0D\0D1. Test your modem with another communications program.\0D2. You may verify that the local access number is correct by calling Technical Support in the U.S. at 703-264-1184." 
  503. IfEq ~ATMP 1
  504. OneAlert 1 "For more information, select Help from the Apple menu."
  505. Exit -1
  506. !
  507. -LABEL 38          {Modem command error}
  508. TAlert "Your modem is not accepting our commands.\0D\0D1. Turn your modem off, then back on.\0D2. Click on Setup, and verify your modem type selection."
  509. Jump "36"
  510. !
  511. -LABEL 40
  512. TAlert "The modem has reported no dial tone.\0D1. Check the phone line connections.\0D2. Make sure the line from the wall is connected to the jack labeled Line, Telco, Wall, or Jack.\0D"
  513. IfEq ~ATMP 1
  514. OneAlert 1 "3. Use a telephone to check for a dial tone.\0D\0DFor more information, select Help from the Apple menu."
  515. Exit -1
  516. !
  517. -LABEL 41
  518. TAlert "The number dialed did not connect to the access company.\0D\0D1. Verify your setup information by clicking on Setup.\0D2. You may verify that the local access number is correct by calling Technical Support in the U.S. at 703-264-1184." 
  519. IfEq ~ATMP 1
  520. OneAlert 1 "For more information, select Help from the Apple menu."
  521. Exit -1
  522. !
  523. -LABEL 42
  524. TAlert "The modem was unable to get a carrier signal.\0D\0D1. Verify your setup information by clicking on Setup.\0D2.  You may verify that the local access number is correct by calling Technical Support in the U.S. at 703-264-1184."
  525. IfEq ~ATMP 1
  526. OneAlert 1 "For more information, select Help from the Apple menu."
  527. Exit -1
  528. !
  529. -LABEL 43
  530. TAlert "The modem detected a timeout.\0D\0D1. Test your modem with another communications program.\0D2. You may verify that the local access number is correct by calling Technical Support in the U.S. at 703-264-1184."
  531. IfEq ~ATMP 1
  532. OneAlert 1 "For more information, select Help from the Apple menu."
  533. Exit -1
  534. !
  535. -LABEL 44
  536. TAlert "The modem has lost carrier signal.  Please try again."
  537. Exit -1
  538. !
  539. -LABEL 45
  540. TAlert "The number specified is not an AOLGLOBALnet number.\0D\0D1. Verify your setup information by clicking on Setup.\0D2. You may verify that the local access number is correct by calling Technical Support in the U.S. at 703-264-1184."
  541. IfEq ~ATMP 1
  542. OneAlert 1 "For more information, select Help from the Apple menu."
  543. Exit -1
  544. !
  545. -LABEL 46
  546. OneAlert 1 "Connection speeds above 9600 bps require the use of Hardware Handshaking."
  547. Exit -1
  548. !------------------------------------
  549. -Label CheckPhoneLength
  550. !
  551. NewString sPhoneNumber
  552. SetVar sPhoneNumber ~FONE
  553. NewLngInt lCount
  554. SetVar lCount 4
  555. !
  556. -Label TopPhoneLoop
  557. IfEq lCount 0
  558. Jump "FinishPhoneLength"
  559. DecVar sPhoneNumber
  560. DecVar lCount
  561. Jump "TopPhoneLoop"
  562. !
  563. -Label FinishPhoneLength
  564. IfEq sPhoneNumber ""
  565. Jump "EmptyPhone"
  566. Return
  567. !
  568. -Label EmptyPhone
  569. OneAlert 1 "You must enter phone numbers before signing on.\0D\0DSelect ""Setup"" and verify the phone numbers you have entered."
  570. Exit -111
  571. !------------------------------------
  572. !
  573. *-LABEL 0                {Hangup Sequence}
  574. *CanBtn 2
  575. !
  576. *Flush
  577. !
  578. *SetTries 0            {DMC: see if we can get the modem's attention}
  579. *ClrMchStr
  580. *MatchStr "1" "OK"         { Dont look for an echo, may be a}
  581. *MatchStr "1" "NO"         { false echo.  Any type of match is good}
  582. *MatchStr "1" ">"          { Special case for Avatex 1200 modems}
  583. !
  584. *Pause 180               { Pause for 3 sec min gap }
  585. *Xmit "+++"              { Get the modems attention}
  586. *Pause 180               { Pause for 3 sec min gap }
  587. *IfTries 0 "1"
  588. !
  589. *ClrMchStr
  590. *MatchStr "1" "OK"
  591. *MatchStr "2" "CARRIER"    {Any type of match is good}
  592. *MatchStr "1" ">"         { Special case for Avatex 1200 modems}
  593. !
  594. *Pause 180               { Pause for 3 sec min gap }
  595. *Xmit "+++"              { Get the modems attention}
  596. *Pause 180               { Pause for 3 sec min gap }
  597. !
  598. *-LABEL 1
  599. *IncTries
  600. *ClrMchStr
  601. *MatchStr "2" "ERROR"
  602. *MatchStr "2" "OK"
  603. *MatchStr "2" "CARRIER"
  604. *MatchStr "2" ">"          { Special case for Avatex 1200 modems}
  605. !
  606. *Pause 40
  607. *Xmit "$ATTENTION$H\0D"
  608. *Wait 300
  609. !
  610. *-LABEL 2
  611. *Pause 40                { Allow modem to settle between commands.}
  612. *ZMIT "3" "$ATTENTION$$REST$\0D"         { Send shutdown string}
  613. !
  614. *-LABEL 3
  615. *Exit 0
  616. !
  617. ###
  618.